package entity;

import java.math.BigDecimal;

public class ShopCar {
    private int id;
    private String goodName;
    private BigDecimal price;
    private String image;
    private String goodId;
    private int checked;
    private int num;

    public ShopCar() {
    }

    public ShopCar(int id, String goodName, BigDecimal price, String image, String goodId, int checked, int num) {
        this.id = id;
        this.goodName = goodName;
        this.price = price;
        this.image = image;
        this.goodId = goodId;
        this.checked = checked;
        this.num = num;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return goodName
     */
    public String getGoodName() {
        return goodName;
    }

    /**
     * 设置
     * @param goodName
     */
    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return image
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置
     * @param image
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 获取
     * @return goodId
     */
    public String getGoodId() {
        return goodId;
    }

    /**
     * 设置
     * @param goodId
     */
    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    /**
     * 获取
     * @return checked
     */
    public int getChecked() {
        return checked;
    }

    /**
     * 设置
     * @param checked
     */
    public void setChecked(int checked) {
        this.checked = checked;
    }

    /**
     * 获取
     * @return num
     */
    public int getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(int num) {
        this.num = num;
    }

    public String toString() {
        return "ShopCar{id = " + id + ", goodName = " + goodName + ", price = " + price + ", image = " + image + ", goodId = " + goodId + ", checked = " + checked + ", num = " + num + "}";
    }
}
